﻿#merchantFrame {
    background: white; 
    overflow: hidden; 
    display:none;
    
    width: 720px;
    height:540px; 
    margin-top: 20px;
}

#merchantDescription {
    font-size: 20px;
    display:none;
     
    margin-top: 15px
}

.itemdetailpage .content {
    -ms-grid-row: 2;
    display: block;
    height: 100%;
    overflow-x: auto;
    position: relative;
    width: 100%;
    z-index: 0;
}

    .itemdetailpage .content article {
    /* Define a multi-column, horizontally scrolling article by default. */
    column-fill: auto;
    column-gap: 80px;
    column-width: 480px;
    height: calc(100% - 50px);
    margin-left: 120px;
    margin-top: 5px;
    margin-right: 20px;
    display: -ms-grid;
    -ms-grid-columns: 400px 40px 360px 40px 1fr;
}

        .itemdetailpage .content article header .item-title {
            margin-bottom: 20px;
            margin-top: 0;
        }

        .itemdetailpage .content article header .item-subtitle {
            margin-bottom: 20px;
            margin-top: 0;
        }


        .itemdetailpage .content article .ingredients {
            -ms-grid-column: 3;
            margin-left: 40px;
            width: 640px; /* Hieu added */
            height: 100%;
        }        

        .itemdetailpage .content article .item-image {
            margin-bottom: 3px;
            width: 460px;
           
        }

        .itemdetailpage .content article .item-content p {
            margin-bottom: 20px;
            margin-right: 20px;
            vertical-align: baseline;
        }


@media screen and (-ms-view-state: snapped) {
    .itemdetailpage .content {
        overflow-x: hidden;
        overflow-y: auto;
    }

        .itemdetailpage .content article {
            -ms-grid-columns: 300px 1fr;
            -ms-grid-row: 2;
            -ms-grid-rows: 300px auto;
            display: -ms-grid;
            height: 100%;
            margin-left: 20px;
            overflow-x: hidden;
            overflow-y: auto;
            width: 300px;
        }

            .itemdetailpage .content article .item-image {
                width: 280px;
            }

            .itemdetailpage .content article .item-content {
                /*padding-bottom: 60px;*/
            }

        .itemdetailpage .content article .ingredients {
            -ms-grid-row: 2;
            -ms-grid-column: 1;
            margin-left: 0px;
            margin-top: 0px;
            /*margin-top: 12px;*/
        }
        
            .itemdetailpage .content article .ingredients .item-ingredients {
                margin-top: 4px;
            }

            .itemdetailpage .content article .ingredients .item-ingredients .ingredient {
                padding-bottom: 0px;
                font-size: 9pt;
            }
            
    #merchantFrame {
        width: 280px;
        height: 280px; 
        margin-top: 15px;    
    }
}

 
@media screen and (-ms-view-state: fullscreen-portrait) {
    .itemdetailpage .content article {
        margin-left: 100px;
    }

    .itemdetailpage .content article .ingredients {
        -ms-grid-row: 2;
        -ms-grid-column: 1;        
        margin-left: 0px;
        margin-top: 40px;
    }
    
    #merchantFrame {        
        width: 620px; 
        height: 680px;
        margin-top: 15px;
        margin-right: 10px;
    }
}

